package cn.maxhou.controller;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

public class HelloController extends AbstractController {

    private static final Logger LOGGER= LoggerFactory.getLogger(HelloController.class);

    @Override
    protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {
        LOGGER.info("Srping MVC 框架搭建成功,当前请求路径:{}",request.getRequestURI() );
        return new ModelAndView("hello");
    }
}
